package com.zy.scwwebuis.service.exp;

import com.zy.scwcommon.bean.AppResponse;
import com.zy.scwwebuis.ScwWebuisApplication;
import com.zy.scwwebuis.service.TProjectInfoServiceFeign;
import com.zy.scwwebuis.vo.resp.ProjectDetailVo;
import com.zy.scwwebuis.vo.resp.ReturnPayConfirmVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

/**
* @program: zyzc_springcloud
*
* @description: 项目接口返回异常
*
* @author: ZYY
*
* @create: 2024-07-08 15:31
**/
@Slf4j
@Component
public class TProjectInfoServiceFeignExceptionHandler implements TProjectInfoServiceFeign {
    @Override
    public AppResponse<List<ScwWebuisApplication.ProjectVo>> all() {
        AppResponse  app = AppResponse.fail(null);
        app.setMsg("热点查询项目失败====调用远程服务登录失败");
        log.error("热点查询项目失败===调用远程服务登录失败");
        return app;
    }

    @Override
    public AppResponse<ProjectDetailVo> detailsInfo(Integer projectId) {
        AppResponse  app = AppResponse.fail(null);
        app.setMsg("项目详情页---项目失败====调用远程服务登录失败");
        log.error("项目详情页---项目失败===调用远程服务登录失败");
        return app;
    }

    @Override
    public AppResponse<ReturnPayConfirmVo> support(Integer projectId, Integer returnId) {
        AppResponse  app = AppResponse.fail(null);
        app.setMsg("项目支持---接口-项目失败====调用远程服务登录失败");
        log.error("项目支持---接口-项目失败====调用远程服务登录失败");
        return app;
    }


}
